﻿@model SuperiorModel.TPagedModelList<SuperiorModel.ProductModel>
<table class="layui-table" id="AppList" lay-filter="test">
    <thead>
        <tr>
            <th>商品ID</th>
            <th>商品名称</th>
            <th>商品品牌</th>
            <th>商户账号</th>
            <th>所属分类</th>
            <th>单位</th>
            <th>排序</th>
            <th>销量</th>
            <th>创建时间</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.TList)
        {
            <tr>
                <td>@(SuperiorCommon.SecretClass.DecryptQueryString(item
                    .Id))</td>
                <td>@item.ProductName</td>
                <td>@item.Brand</td>
                <td>@item.LoginName</td>
                <td>@item.MenuName</td>
                <td>@item.Unit</td>
                <td>@item.Sorft</td>
                <td>@item.SallCount</td>
                <td>@item.CreateTime</td>
                <td>
                    @switch (item.OptionStatus)
                    {
                        case 1:
                            <span style="color:green">上架中</span>
                            break;
                        case 0:
                            <span style="color:orangered">下架中</span>
                            break;
                    }
                </td>

                <td>

                  

                    <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini" href="/Product/ProductEdit?id=@item.Id" MenuName="@item.MenuName">查看详细</a>
                    <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini" href="/Product/ProductSku?id=@(item.Id)&shopAdminId=@item.ShopAdminId" MenuName="@item.MenuName">查看规格</a>
                </td>
            </tr>
        }
    </tbody>
</table>
@Html.Partial("_TPager", Model.PagingResult)